#
#	Apple Macintosh Developer Technical Support
#
#	MultiFinder-Aware Simple TextEdit Sample Application
#
#	OOPTESample
#
#	BuildOOPTESample	-	MPW Script
#
#	Copyright © 1988, 1989 Apple Computer, Inc.
#	All rights reserved.
#
#	Version:		
#					1.00					04/89
#
#	Components:     
#					BuildOOPTESample		April 1, 1989
#					MOOPTESample.p			April 1, 1989
#					OOPTESample.make		April 1, 1989
#					TECommon.h				April 1, 1989
#					TESampleGlue.a			April 1, 1989
#					TESample.r				April 1, 1989
#					UApplication.p			April 1, 1989
#					UApplication.inc1.p		April 1, 1989
#					UDocument.p				April 1, 1989
#					UDocument.inc1.p		April 1, 1989
#					UTEDocument.p			April 1, 1989
#					UTEDocument.inc1.p		April 1, 1989
#					UTESample.p				April 1, 1989
#					UTESample.inc1.p		April 1, 1989
#

set AppName OOPTESample
Echo "# `Date -t` ----- Build of {AppName}."

set TML 0		# Set this to 1 to use TML Pascal
set ObjFolder ":Objects:"
Newfolder "{ObjFolder}" ³ Dev:Null || SET Status 0
if {TML} == 1
	set Pascal TMLPascal
	set PasLib "{TMLPLibraries}"TMLPasLib.o
	set MakeFiles "-f {AppName}.make -f TMLRules.make"
else
	set Pascal Pascal
	set PasLib "{PLibraries}"PasLib.o
	set MakeFiles "-f {AppName}.make"
end
export AppName ObjFolder Pascal PasLib

Echo "# `Date -t` ----- Analyzing dependencies."

Make "{AppName}" {MakeFiles} > "{AppName}".makeout
Echo "# `Date -t` ----- Executing build commands."
"{AppName}".makeout
Delete "{AppName}".makeout

Echo "# `Date -t` ----- Done."

Set type "`files -i -n -x t "{AppName}" ³ Dev:Null || Set Status 0`"
Unset ObjFolder

Echo -n ¶t; Quote -n "{AppName}"; Echo -n " "

